@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Grechen+Fuemen&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box ;
    font-family: "Poppins", sans-serif;
}

body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    background: url(../../img/background.jpg) no-repeat center center/cover;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
    position: sticky;
    top: 0;
    background: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 999;
}

.navbar-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    max-width: 1600px;
}
/* logo */
.navbar-logo {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}


.navbar-container .navbar-menu {
    display: flex;
    text-align: center;
    gap: 1.5rem;
    list-style: none;
}

.navbar-container .navbar-menu li a {
    text-decoration: none;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 3px 20px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.7s ease;
    white-space: nowrap;
}

.navbar-container .navbar-menu li a:hover, .navbar-container .navbar-menu li a.active {
    color: #162530;
    background: rgb(188 , 212, 229, 0.8);
    border: 2px solid #fff;

}

.navbar-toggle {
    display: none;
    background: transparent;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: #fff;
    transition: all 0.3s ease-in-out;
}
/* search */
.navbar-search {
    --size: 55px;
    --padding: 8px;
    --expanded-width: 300px;

    display: flex;
    justify-content: flex-end;
    /* background-color: #fff; */
    box-shadow: 0 10px 10px 0 #d6d9e2;
    border-radius: 100px;
    /* overflow: hidden; */

    outline: 1px solid transparent;
    padding: var(--padding);
    width: var(--size);
    /* margin-inline: auto; */
    margin-left: auto;
    /* width: 600px; */
    height: var(--size);
    max-width: 100%;
    transition: width 0.5s, outline 0.5s;

}


.navbar-search:focus-within{
    width: var(--expanded-width);
    outline: 1px solid #2e2e2e;

}

.navbar-search:focus-within .search-button{
    opacity: 1;
}

.search-input {
    font-size: 18px;
    color: #3a3a3a;
    background-color: transparent;
    border: none;
    outline: none;
    opacity: 0;
    max-width: calc(var(--expanded-width) - var(--size) - var(--padding) * 2);
    transition: opacity 0.5s;
    
    flex: auto;
}

.search-button {
    flex: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #fff;
    background-color: #3a3a3a;
    border-radius: 50%;
    border: none;
    width: calc(var(--size) - var(--padding) - var(--padding));
    aspect-ratio: 1;
    cursor: pointer;
}

.search-button:hover {
    background-color: #0056b3;
}



/* Responsive style for mobile version*/

@media (max-width: 880px){
    .navbar{
        backdrop-filter: none;
    }
    .navbar-container .navbar-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem !important;
        position: absolute;
        height: 100vh;
        width: 250px;
        top: 0;
        right: 0;
        padding: 5rem 1.5rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);

    }
    .navbar-container .navbar-menu.active {
        display: flex ;
    }

    .navbar-toggle{
        display: block;
        z-index: 999;
    }
    
    .navbar-toggle.active .bar:nth-child(2){
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggle.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px){
    .navbar-container{
        padding: 0;
    }

    .navbar-logo{
        font-size: 1.7rem;

    }

    .navbar-container .navbar-menu li a {
        font-size: 1.2rem;
        padding: 3px 15px;
    }
}
/* search for mobile view */
@media (max-width: 880px){
    .navbar-search{
        --size: 30px;
        --expanded-width: 200px;
        overflow: hidden;
    }
}

/* log mobile view */

@media (max-width: 480px) {
    .navbar-container {
        display: flex;
        justify-content: center;
    }
    
    .navbar-logo {
        font-family: "Grechen Fuemen", serif;
        font-weight: 600;
        color: yellow;
        text-decoration: none;
        cursor: pointer;
        text-align: center;
    }
    .movie-list-title{
        font-size: 1.2rem;
    }

    .navbar-toggle {
        z-index: 1000;
    }
}

/* card */
.content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.image-item {
    max-width: 30%; /* Responsive image */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px;
}

h2 {
    margin: 10pt;
    color: white;
}

h3 span {
    color: black;
    background-color: rgb(0, 255, 221);
    padding: 2px 5px;
    border-radius: 5px;
    margin: 10pt;
}

h4 span {
    color: black;
    background-color: yellow;
    padding: 2px 5px;
    border-radius: 5px;
    margin: 10pt;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .image-item {
        max-width: 80%; /* Increase image size on smaller screens */
    }

    h2 {
        font-size: 1.5em; /* Adjust font size for headings */
    }

    h3 span, h4 span {
        font-size: 0.9em; /* Adjust font size for spans */
    }
}

@media (max-width: 480px) {
    .content {
        flex-direction: column; /* Stack items vertically on very small screens */
        height: auto; /* Allow height to adjust based on content */
    }

    .image-item {
        max-width: 100%; /* Full width on very small screens */
    }

    h2 {
        font-size: 1.2em; /* Further adjust font size for headings */
    }

    h3 span, h4 span {
        font-size: 0.8em; /* Further adjust font size for spans */
    }
}

.box {
    margin: auto;
    display: flex;
    flex-direction: row; /* Changed to row for horizontal alignment */
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    height: auto; /* Adjusted height for better responsiveness */
    flex-wrap: wrap; /* Allow wrapping if necessary */
}

form {
    margin: auto;
}

.box a {
    width: 200px; /* Adjusted width for better fit in a row */
    height: 50px;
    text-align: center; /* Center text in button */
    background-color: #007bff; /* Background color */
    color: white; /* Text color */
    border: none; /* No border */
    border-radius: 10px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Transition for hover effect */
    text-decoration: none;
}

.box a:hover {
    background-color: #0056b3; /* Darker background on hover */
}

/* Additional styles to match the provided image */
.box {
    padding: 20px; /* Padding for spacing */
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); /* Shadow for depth */
}

.box a {
    position: relative;
    display: inline-block;
    font-size: 16px; /* Font size for readability */
    margin: 10px; /* Margin between buttons */
    vertical-align: middle;
}

/* NOte */

footer{
    width: 100%;
    position: absolute;
    bottom: 1;
    background: linear-gradient(to right, #BE1CBF, #4B9DE5);
    color: #ffffff;
    padding: 15px 0 30px;
    border-top-left-radius: 125px;
    font-size: 13px;
    line-height: 20px;
}
.row{
    width: 85%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}
.col img{
    width: 80px;
    margin-bottom: 30px;
    
}


/* adds */

.ad-container {
    position: relative;
    width: 100%; /* Full width */
    max-width: 300px; /* Maximum width */
    height: 0;
    padding-bottom: 83.33%; /* Aspect ratio (height/width) = 250/300 = 0.8333 */
    overflow: hidden; /* Hide overflow */
}

.ad-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 480px) {
    .ad-container {
        max-width: 100%; /* Full width on mobile */
        padding-bottom: 100%; /* Adjust aspect ratio for mobile if needed */
    }
}